package com.ssm.dao;

import java.util.List;

import com.ssm.pojo.Person;


public interface PersonMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Person record);

    int insertSelective(Person record);
    /**
     * 根据用户名密码验证登录
     * @param username
     * @param password
     * @return
     */
    Person selectone(Person record);
    
    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
    List<Person> selectByName(String username);
    
    Person selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Person record);

    int updateByPrimaryKey(Person record);
}